package hu.debrecen.adastra.card.repository.domain;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import org.springframework.data.jpa.domain.AbstractPersistable;

@Entity(name = "Achievement")
public class Achievement extends AbstractPersistable<Long> {

	private static final long serialVersionUID = 1L;

	@ManyToOne
	@JoinColumn(name = "account_fk", updatable = false)
	public Account account;

	private String achievementId;

	private Boolean showed;

	public Achievement() {
		super();
	}

	public Achievement(final Account account, final String achievementId) {
		super();
		this.account = account;
		this.achievementId = achievementId;
		this.showed = Boolean.FALSE;
	}

	public String getAchievementId() {
		return this.achievementId;
	}

	public void setAchievementId(final String achievementId) {
		this.achievementId = achievementId;
	}

	public Boolean getShowed() {
		return this.showed;
	}

	public void setShowed(final Boolean showed) {
		this.showed = showed;
	}

	public Account getAccount() {
		return this.account;
	}

	public void setAccount(final Account account) {
		this.account = account;
	}

}
